docs: fix/improve references chapter a little bit
Check errors on module initialization