Code cleanup and console logging cleanup #304

Removed some doubled lines from the code that I found and changed some
of the console.logs to errors or info and changed some of the info they
output.