Added map and reduce logic

to FalconClient
Added boolean for map or reduce task