complete rewrite of API, makes using module easier after including
improved README a little