Fixed issue with interrupt register saving, fully implemented working basic threads.