Support Microsoft Office file types
Code optimization and make spawn() public