Uploading codes

This is the current 'code skeleton'; it's a little different from
what I have on toolserver. I will try to update the code soon.