This is my final submission. Explanation of code is in comments, and also in the README file that I will be committing soon.
This is my final README file.
Final gibgen.py file.