fixed bug in uhf...added initial density function