Fixed many bugs and added resizing enhancements to the generation of fragments portion of the program.