added option to show and print pupil details