bump to version 0.3.1
refine code structure