Added new function files

test.php contains some examples of using these functions