add legacy to header
mkdir lib directory first
add ignore files
refresh .gitignore