Add build function + some minor documentation fixes