mk450: code clean up and documentation