added end and home key functions
fixed some summary output