Issue #15 - Implement allocation function

Allocation implemented, and added a job with internal of 10s (change on the future) to check on assignments.