5/12/14 - minor code changes
5/12/14 - major code update: smoothing darkness function added