Fix reference_for(...) methods where table has text primary key
Add document build instructions in howto