Private delegates where incorrectly marked as events
replaced bitwise operation with more readable Enum.HasFlag() call
Removed AtomicLong and replaced its usages with direct Interlocked calls
cosmetic cleanup, no changes in logic
renamed tid to threadId to improve readability
Removed the usage of AtomicInteger
Code cleanup - updated field names to improve readability
Cosmetic changes to make the queue code more readable
Fixed the code for YQueue (chunk size should be at least 2, Back property was incorrect)

Added Tests for YQueue
Cosmetic changes to make the pipe code more readable, updated documentation comments, updated PipePair definition (no changes to logic)
Reformatting code
Renamed field "owned" according to naming conventions, updated documentation comments
Merge pull request #78 from almazik/feature/cleanup_code

Code cleanup