added header and basic vector functions