Implemented and documented Macro class