Removed deprecated API usage. Corrected spelling and formatting.