updated Word count mapping
Better handling of stdin
Improved the mapping and added error handling of stdin
Added reduce code
added git ignore