mainCode complete

all methods and helpers complete and fully functional. just need to add in javadoc comments