Arranged code into header and source files. Added function for convenient access to bitmap data.
Arranged code into header and source files.