redone bash files according to documentation