composer.json fix; code from index moved to separated App class; test added; configs added.