cat: Rename some variables
cat: Move cat() below main()