Fixed path mangeling issues, switched properties to attr_accessor, and cleaned up code in general