Finished groups and rings
Added logging for groups and functions