Add print function to reduce code footprint
adjust formating