Small fices to prevent some Strict Standards messages

Small fices to prevent some Strict Standards messages and some exaples
made in the tutorial