Added error checking for print statements
Added Print statement checking, and new()/newArray() checking