Input error checks

- Added some checking for errors in input
- Group information now input using table rather than text