Added changes asked by timgraham and jorgecarleitao

- Fixed some coding style issues
- Fixed link errors in documentation
- Improved regression tests

And also added myself to the AUTHORS file.