Added indentation detection; improved sudo functionality