0.3.4 changing all functions to private except main()