Split out directions module into different file and added unit spec