fixed some indentation errors and jshint suggestions
start work with sound; realtime editing possible but still quite a few bugs (and improvements needed)