solved discarding counting problem. Added more documentation
Added more documentation