Updated main file

Added new basic functions, variables and draw mode.