Code refactoring and server is now able to recieve location and orientation data from clients.