Thomas Group, Inc. Amended and Restated Note and Warrant Purchase Agreement October 17, 2002