fixed cython files; finished adding cython functions; fixed data type issue in data.h