Added main mod cores, and some javadoc.