Update dependencies and make regex match newlines, closes #3