Help with amplifier with feedback
Just looking at the behavior you described and the datasheet there are a couple of points I want to present.


Since this doesn't look like a rail-to-rail OpAmp you will have some trouble with the available range in the output. This means in your case that it will probably only be able to swing to something like 1.5v to 7.5v (assuming a 1.5v drop by the OpAmp). If you try to generate an output higher than those values it will simply clip the value, something like your "flat top".
The other problem that you may encounter is that you are operating near the Unity-gain bandwidth of this IC (which is typically 400kHz, by the datasheet). This means that your OpAmp will operate different than a ideal opamp (which has inf. gain).


Try to reduce the gain of the circuit, or the amplitude of the signal. Also you can try to ad an offset to your signal (shift it up or down).

Also for a great reading about electronics take a look at the book The Art of Electronics. You can go directly to the first chapter about OpAmps, and if you got interested devour it from begin to end.