Makerbot Spool holder

I need a spool holder for some no brand filament from China as it won't fit the regular Makerbot spool holder.

I took the chance to use it to learn OPENSCAD, this is my first attempt for this software.

I will be thankful if any kind soul can look at it and improve my code, so I can learn from it.