Renamed the collector function to follow the C naming conventions.
Changed the default node.x value for pixels outside the bounds to -1 and a check in the worker when calculating the average so that the value (0) is not used in the calculation.
Fixed several typos and spelling mistakes.