minor fix
added a macro
completed examples
updated