add support for installing on macOS10, remove excessive newlines