Added init.sh and fixed syntax errors