make mac compatible
attribution. Update .gitignore
fix strrep bug. negative value for unsigned type