Threading added.
File saving, thread handling and statuses added.