Added an option to use percussion in midi parsing.

Also did a little clean up of some code.