updated

added a couple of functions, deleted some unnecessary code, fancified
the program overall