Added more error messages and tab width var