improve code style and readme