Update 0.5b
Added more comments.
Added init() to main