Minor updates

Found a frequent undefined error plus some missing semicolons/end of line issues.