Footer detection added

Now the footer (if any) can be detected. This is accomplished using the same heuristics of header.

Also, there is a minor fix on determineSeparator: The function occurrences has been deleted, and the separator counting is done via javascript's string.split()