PhpDoc added
PhpDoc and some fixes,improvements