update code style and improve specs