Split lib.php and standardise file headers
Merge pull request #43 from skodak/lib

Split lib.php and standardise file headers