Added documentation to main.cpp.
Added more rules to .gitignore.
Moved noise reduction code into a function: reduceFrameNoise().