Writes labspec.json and commits to repository