Clean up code, add customizable squiggle color setting, fix parser.

- Removed whitespace, autogenerated comments, unused imports.
- Added customizable squiggle color option for indicating stimulator errors.
- Fixed stim file parser to flag lines that start with a valid directive prefix but contain additional trailing invalid characters (such as "$repeatx" rather than "$repeat").