Large refresh

Updated testing - split into building and parsing
Limited handling of dynamic partials during compilation
Initial error checking added