Swapping code with external library

readfile and readconfigdir have been removed and refactored to use parse-dir instead.

Fixes #62