Created a subroutine to compute the weekday of the first day of any month

First, there only was code for computing the first day of a year. Now, the
program shows every month correctly. Only the navigation is still not entirely
correct.