Updated readme file, moved some code.