added comments
cleaned up code for reading nodes and resources
renamed ckey to questions