0.1.4: better input wav file handling (from Yichin Lin)
code cleanup
