corrected some testcases
removed useless variable
generated documentation