Reload & makefile

Added reload function at enter. Updated Makefile for OS detection and
proper gcc flags on Linux