refactor main, initial_embedding: moved code related to setupInitialEmbedding to initial_embedding.coffee