- bump Tcl to 8.5.16
- adding preliminary FreeBSD support (many thanks to Benjamin Brink)
- performing some refactoring (mostly due to comments from Benjamin)
- trimming trailing spaces, use comparison operators more consistent
re-alligned to original after initial changes from this fork accepted by Gustaf.