The science behind capturing your thoughts.