Fix chown, formatting, better error feedback