Treading implemented. Project cleaned up.
More refactoring. Added threading.