basic versions of major functions working
added data dir, keep locally