modified error messages. Fixed tab space issues