Beta 0.3
Added threads
code cleanup
improvements