@spud11
Best advice here is to make your troubleshooting as simple as possible. I would recommend "sudo cp autostart.sh autostart.sh.original, and the same with the "onstart" and "onend" files - that way you can climb back down the tree if you get into trouble.
Next, clear out those files and populate them per the instructions; there's just not a chance of it not working then. I'll attach my working ones to this post and you can just drop them in for a test if it will help.