Edited comments, fixed smaller value option for 
valuesList[assignmnetIndex] to be 0.0005
Edited comments, cleaned up code