Cleaned up a bit and added some application tests
Merge pull request #2 from ageoldpun/master

Cleaned up a bit and added some application tests