Fixed alot of things.  Error checking and debugging now.