Added more error messages and tab width var
Added complete error handling
Merge branch 'Issue_20'