Quality enhancements

* Normalize function & variable names
* Also improve documentation format