use deque
Merge pull request #1 from wannabeCitizen/master

parsing fixed, recursion broke
fix bug with recursion
remove unused files
remove another unused file
fixed some stuff