expanding history size and adding exit code to prompt