Polished comments and added util print function.