Added formatter and printer functions.
Added comments.
Add formatter and printer functions.