Remove unneeded 'return 0' in main
Remove Windows support
Split memo.c contents into memo.h