Made levelDir argument optional.
Added configuration class. Closes #79.