Finished all basic methods

Finished writing database lookup method
Finished writing history log writing method
Minor changes to main and swipe_read headers