restuctured library. modifed source tree to modularize PUG requests and components