fixed formatting and added headers