added comments for doc and changed the printouts
same as previous