added bash script + minor edits