Fixed PHP notices, removed wrong alert, cleaned