Add better debug flag usage. Use 1 for simple print outs and 2 for a lot more