added and modified some scripts of analysis and maintenance