#14: Add a check to the node type and view mode before setting up $program.
Merge pull request #23 from NYC-Camp/14_node_conditional_check

#14: Add a check to the node type and view mode