A lot of the components you can buy for locos can be used on ready to run, kits or scratch built locos. Some techniques can be seen in these articles: