refactored setup.sh and added alias creation function