Java-AIInterface: add new and improve doc comments & formatting [minor]
Java-AIInterface: check against storage limit, not current size (thanks to playerO1 and abma) [fix]

Without this commit, no Java-AIInterface can be instantiated!
Merge pull request #137 from hoijui/javaAIInterfaceFix

Java-AIinterface fixes