added readme, moved logic functions to cubemap.cpp