Updated documentation and fixed build errors