check for trailing spaces etc.
fixed API docs
updated version