fixed bugs and added multiple options

fixed #5,fixed #6,fixed #7,fixed #8,fixed #9,fixed #10