Cleaned print statements, revised isFriend, etc.

Removed duplicate and unnecessary functions.