Documented API and comments for lab 6.