Improved field() method; added attributes for all field types