Modifications for Windows support
Removed class BOMB
Refactored comments and non-portable functions