changed field and added grid per earlier discussion
minor changes to main prog