Fixed all print statements from printing and fixed initial null pointer exception