Improve Parser class and add a command line script for debugging purpose