First Draft of Gateway API Documentation

PDF version of API