fixing errors from past assignment

discovered and fixed new ones. discovered error in add contact process.