exception handling, utility, comments

Added exception handling code to parse and read/write functions.
Added utility file with string conversion methods.
Added comments to some methods.