added titlepage and nearly solved p4 completely.