added some coloring.
added box to latex
small changes
added duplicate names check