added pretty table to the script for better output