Remove trailing whitespaces
Update type definitions and edoc comments