Updated the code to fix crash @ enter, added shell script to compile