added in the deprecationMessage and styled
Merge pull request #1507 from davidpett/deprecation-warning-in-api

added in the deprecationMessage and styled