Debugged and added examples