Updating README
Adding API methods and tidying up the code