added setup.py
added directory checking functions to interface