more implements of server class. Also added javadoc