continuing to fill in functions. corrected the drawing, so it should draw all blocks correctly.