added features and fixed bugs in the header