added comments
added comments
indenting + standardizing error messaging