fixed a lot of problems...
made program be compatible with 16-bit sounds