added auto loading via namespaces , removed obsolete trailing php tags, ...

...tests improvements