add pretty printed function

add pretty format print function
TODO: make the function simple