refactoring of GPL c - libraries for operating a 3-d led-cube