added all foundation files and cleaned things up