All solved problems posted.

Source code may be messy; I have not looked at it for a while.