Added tests for RGBA class, and some minor refactoring
Removed unused code