0.9

change main function to a more readable manner and leave out some
comments that is out of date