Add a new sample parser and move calc stuff

into its own subdirectory.