3d led cleanup

Cleaned up the code a bit