extract code, text as list

only question, answer object need these methods.
this resolves #21 
yes. it extracts code elements. since we don't need code there, i have not stored it there.