Fixed sound, cleaned up randomNote() code, added comments to several files