added javadocs and the inability for resources/money to go below zero