cleanup autoload code and add markdown.php loading