Improved parseColor input so case can be ignored by user. Added some more explainatory comments.