Added constructor documentation for Java and PHP