fix formatting and fix some errors
add headers