pi additions
added compile code to java