Fixed specifications for all functions and moved help functions inside let

Oskar, Erik, Adil. 1 hour, 30 minutes