Input Generation Code

Adding the code that the TAs put out. Also, some photoreceptor code.