added base file opening and example header.