CoAP code and javadoc cleanup