Refer to new_resource and run_context through instance variables.
General code clean up to meet style guide. Still a ways to go.
General code clean up to meet style guide.