Update parser.rb

Added a paragraph in comments explaining my logic for public vs. private getter/setter methods, along with related private methods for determining how information is being stored, organized visually, and ultimately written to file.