add static files
add threads
fix compiler warnings
mv unused files to demos fir