Add more fortunes and minor refactoring in core.c