bug fix
refactored documentation
added simple examples