Adding JavaDoc to server

Adding javadoc, removing unneccesary classes for this time - and making
sure that irrelevant named variables gets deleted.