v1.1 TO TEST

* separate functions in separate files
* some protection against explicit .php scripts