Class file fix

Made all classes public so they can be accessed by the Test project.
Added some functions to the write class