CRC error checking added

Modified code for handling CRC checking, also makes overall code run
faster. Fixed a bug which was causing distortions in playback of some
files.