improved indentation; file modes that are not obvious