Initial commit
Copy in pseudo code
Add updated _check_first_line code