Checked all php security options and removes some little bugs