updated code and added compile.sh