Refactored analyze.py and removed unused functions.
The node type to be viewed are specified in consts.