Format changes and optimization calls

Change indentation and add calls in compile() to use optimization
functions