basic length check on anchors implemented
memset flags and count the number of zeros in the end
Remove copyright old copyright notice