Fixed minor style issues.
Removed obsolete tr1::shared_ptr.