Preparing to separate the renderer from the display

- Added some bounds checking to ATB wrapper
- Added some extra types to the ATB wrapper
- Added some tentative comments for the rendering