Minor changes

* Change buffer size to 64 bytes for more flexibility (was 16).
* Improved error messages for debugging purposes.