Version 0.1

Fixed threading bugs.