Added missing copyrights and javadocs
A replacement can be fully constructed in the class constructor