Fixed arryindexoutofboundsexception
Adding pub fun not containing "::"
Clean up