namespaces

Added namespaces according PSR0 standard, some fix improvements