Wrote writer and refactored method names to be inline with c# coding guidelines instead of java