fixed bug
updated documentation