added fail count process.
added a different test to the trangulation.
modified of options parameter.
modified of temp file parameters
modified tag size.