Added debug flag to print out results of commands and added some extra documentation