Create Binary Translator

This is a program that turns a decimal number into a list of 1's and 0's. I have very little understanding of binary but I'm pretty sure this is, for the most part, correct. The program is limited to 512 (2^10) but could go as high as you want with a little tweaking.