remove trailing spaces
export useful options
fix some indents
fix type
build