fixing indentation
removing RDS references
indenting properly
adding swap check