added javadocs in domain and api classes