[#28] Cleaned up stardidi's green channel code

- Made recommended changes.
- Small corrections.
No blank line at end of file.