Added threshold file parsing, using rapidjson library, and added mutate function to polygon