Fixed strict standards errors and PHP notices