added missing docblock
added automatic docType support and a possible bootstraping function