Added comments.
Removed testing print.
Fixed typos.