Renamed most of the functions and variables as stated in the bash styleguide, about time