Finished the first part of the javadocs
ThreeColoredFlag fix and tests