Merge pull request #3 from abhibeckert/master

Add COSTarget class
Tweaked some stuff a bit.
Committing some bad code.
Make GC clean up the buttons and window.