More work on fleshing out the api. Started writing tests for event emitter and basic instance structure of the library