Some threading. Minor documentation.
First prototype :)