Updated Resource class.

Refactored init's error-checking (implemented in last commit) for maximum and amount variables.