slightly better code arrangement, got rid of the extra blank string at the end of every list, and fixed an error from last push