Some bug fixes and added detailed installation documentation for mac users