Minor syntax updates and more nifty bash functions