Fixed resource display bug. Added more javadocs