Added 'function reassignment' error type. Optimized file-reading method.