Improved the Array.reduce method. A little bit more documentation for arrays.