Added pwent_box function
Added comments, removed sample rendering