Removed lots of old code - fixed a record-to-wav error with the