fixed compileerror
added methods for saving and loading contacts from file, code cleanup