split api into separate files
Merge pull request #6 from RobertPieta/master

update api to be in separate file for better maintainability