trim trailing spaces
fix documentation typos

environmemt --> environment
does not handles --> does not handle