Added a log command, changed lots of lists to ArrayLists for no particular reason