Rewrite of the API generation to use files
Increment version to v0.3.1