Added timecard generation to the frontend
Cleaned up code a bit