Merge pull request #7 from OpenC-IIIT/master

updating my repository
added the function setupSignalHandler()

This function registers all the interrupt signals(most of them I guess ) with our signal_callback_handler which sets up the terminal to orignal state.
reorganized code

removed useless comments(debugging ones ),
added useful comments
gathered functions by their purpose
removed test() function as it was of no use.
added explaination of messages.
Merge pull request #16 from ramanujam17/master

reorganized and explained parts of code.