increased code readablity

changed variable names
formated funcitons differently than variables