Here's the
Programming Reference Guide for the old controllers.
Here's the official
Basic Stamp Reference Manual which documents all of the BASIC commands.
In fact, most of what you need to get started is on the
IFI Legacy Documentation page, in the 2001-2003 section.
Good luck, and feel free to message me if you need help.