topographer,
For the first problem, I believe everything is in there so that you can do it
yourself. Directions and locations are already available in the code posted.
For the second problem if you so much as look at the code, there is a nice remark
that tells you how to settle it.
You have to help yourself a little and start a bit of coding.
Learn to fish.
ymg