Figured out the first half but am still having a little trouble shooting problem with the Initialization Files. I am working in bash on a remote server.
When I log on I am seeing the correct prompt but right before that I am also seeing this
the id -u integer expression expected is what I can't get my head around at the moment.
You need backtics, not single-quotes. So this line should be like this (copy/paste into your terminal if you can't see the difference on the web page):
if [ `id -gn` = `id -un` -a `id -u` -gt 14 ]; then