wrote tests for Chain class; many small modifications and fixes to Point and Chain classes
fixed includes, namespaces
wrote ChainFlushError exception class to handle errors when opening the file for Chain::Flush()