Add comments and decomposition

Added comments and decomposition to all but the ShapeMouseHandler,
which is only partially done at this point.
Additional comments

Comments added to ShapeMouseHandler