Phase 1 complete
Addition of lib.php