added gitignore
moved api stuff to module