Added module errors. Closes #158.