updated main file and header