clean up parser code and add type signatures
Merge branch 'master' of https://github.com/martyn82/SST
added parser to deliverable