improve documentation and add debug functions
improve documentation
add tests