Added composer.json, switched codepool from local to community, added helper class with some refactorings