Updated dependencies
Fix bad CMakeLists.txt for at.cpp
Fixed function.hpp related layout
Fix various include missing after movign bits around