added parse.{h,cc} with the idea of starting my first spirit experiments
bugfixes