Added appendix on groups
Added debug option
Added comments