Refactor fragment compiler and single root fragments
Merge pull request #56 from mmun/refactor-single-roots

Minor cleanup of single root fragments & fragment compiler