Added explanatory docs to elements module
Style fixes & improvements