fixed missing quotation + some formatting cleanup

eom

Signed-off-by: Robert Tipton <tret@tretflix.com>
fixed missing close in if statement

eom

Signed-off-by: Robert Tipton <tret@tretflix.com>