added some missing semicolons, @return statements.