Added documentation for I/O functions and cleaned out the ClearIce class