Properly stratified endomorphism algebras