Added usage doc + some more in-code comments.