replace spaces/tabs mix with tabs only
remove trailing end php tag
actually set the check field
remove unused ipstr variable
add composer.json and gitignore