Threading bugs fixed, refactoring support added, hints added, stability improved