First batch of documentation and code clean up.