Add composer.json and fix a few bugs