Changed Linkage

Fixed a linkage program and added the end of month function