Small fix in config.h
Added memory limit warning
Small refactoring in eagle.c