automated code formatting and cleanup