drawtext is working properly. started error checking.
added todo comments
added todo comments