Initial source commit

v0.2 code