cleaned up whitespace
More cleanup, change the way it checks for permissions slightly
whitespace clean up, indent errors
clean up