As there was some interest in source code in two earlier posts (post 1, post 2) I’ve posted the source code here.
It’s also available through the download page.
Please note that the code itself is at least 4 years old and there are far better ways to solve some things. I therefore suggest that it is used for studying purposes only. Comments and improvments are very much appreciated.