error handling in drawing layer functions
Merge pull request #330 from salil93/template

Error handling and documentation of Drawing Layer functions