Added composer.json and fixed up some debug stuff