Core: phpdocumentor comments + minor fixes