Made inventory multiplayer ready and added some javadocs