0.0.6: rewrite codes, remove useless files