Corrected name of aws env variable
Added AWS_CONFIG_FILE to env
Added ssh keep alive code
Factored out funcitons
Added comments