Updated some documentation and typescript definitions