moved the localcolor struct to .h file and added the 'add' method