Added util print function, tweaked some var names