imported skeleton of frequency analysis file
updated reparsing logic, fixes #30