finished register.php
Adding some API documentation to the readme