update docs
comment style
compile
better code