Added header comments about the author. Added immediate file switch for read/write. Improved some preprocessor defines.