remove Source_main.h cmake install
add function for reading data from memory