Reordered functions
Added full support for partials
Added markdown processing