* Fixed build error.
* Panicing is bad, should use fatal.
* Code format fixes.