Added some javadoc

Edited some things for saveResource and JavaDoc on getResource.