Updated menu functionality to remove global variables
Updated makefile to make it more generic
Added context menu definition
added context menu usage on escape key