improved documentation
bug fixes