started doctesting. fixed fromList and fromListN