Added weights to Assoc Graph in spectragraph. Moved main to build.