Fix in doc
Added macros for prologue and epilogue
Added subprocedures to documentation
Merge branch 'doc' into dev