got api working
implemented event blablaing
Merge pull request #4 from oceth/fixes

Small fixes