global is now lib

added first .php files