removed trailing spaces, rustified code a bite more, removed #[allow(...)] instances