Various improvements

- usage of c99 constructs to make code more readable
- updated readme
- fixed broken MB-mode