Added in the uni method, if you dont know what it is, see javaDoc. Fixed
bug where if backup directory doesnt exist the program crashes... Moved
most of the "main" code into processInput to allow for easier reading.