fix bug
fix bugs
modify write file
fix bugs and change some algorithm
change master livemap definition