fixed license headers and javadoc tag
moved ports to top of the class and removed unnecessary annotations
removed clone override and created new objects directly in definePartitions
changed unnecessary usages of this
changed all occurances of filter and logtype to refer to the static final string for consistency
changed occurances of junit.framework.Assert to org.junit.Assert
clean up