Changed some file modes and updated a few things