some refactoring
added composer to travis
added link to functions in readme