Cleaned code, added some functions

has ability to cache games to Matches directory.