Fixed a few bugs

* mac type is response for header API
* some functions not returning their calculations
* Checking for None versus ''