Completed API revamp and color assignment algorthm. Now time for exhaustive testing.