Added javadoc target.
Began prototyping resort function.