Adding the old achievements code

Needs cleaned up and improved, but it has the new comment format, so I
can improve it over time