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

- Made recommended changes.
- Small corrections.