Fixed minor errors (missing semicolon etc)