Bash script up, needs to be commented

Error-proofing would help