updated foundation to version 4
updated settings and added new foundation files