add foundation, work on index and header
fix merge conflicts