Removed trailing spaces and edited documentation