Few more changes to make it work on mac....working code...basic version starting of the hack day