updated I/O subsystem, added more to Utils, created Distance class