fixed bugs in some type extensions, added install scripts and readme