Added support for fragments
Added support for fragments
Merge pull request #7 from priand/master

support for fragments