commented
more comments and pragma to disable superflous warning
refactored queue to its own file
getting late
added docstrings
final touch..