fixes for windows
added init command
add test for init