implemented initial guess generator as a test
fixed bug in initial guess generator