Fixing bugs and loading pages from .txt files