add docs
Added docs
Simplified the code by using the email module to parse messages