Started java gui and fixed bug in double p