refactored setup to local method
config writeable from outside
apiUrl now configureable
added .idea to gitignore