added a main module to organize, added matching logic. Thank you gale and shapely