diff --git a/build.xml b/build.xml
index b25e6dd..e67dc9b 100644
--- a/build.xml
+++ b/build.xml
@@ -5,9 +5,11 @@
-
+
+
+
@@ -15,7 +17,7 @@
-
+
@@ -45,8 +47,8 @@
-
-
+
+
@@ -57,7 +59,7 @@
-
+
diff --git a/src/main/java/org/hacdc/crystal/Crystal.java b/src/main/java/org/hacdc/crystal/Crystal.java
new file mode 100644
index 0000000..462e1a0
--- /dev/null
+++ b/src/main/java/org/hacdc/crystal/Crystal.java
@@ -0,0 +1,35 @@
+package org.hacdc.crystal;
+
+import javacard.framework.APDU;
+import javacard.framework.Applet;
+import javacard.framework.ISO7816;
+import javacard.framework.ISOException;
+
+public class Crystal extends Applet {
+ public static void install(byte[] buffer, short offset, byte length){
+ // GP-compliant JavaCard applet registration
+ new Crystal().register();
+ }
+
+ public void process(APDU apdu){
+ // Process APDU commands
+ if (selectingApplet()) {
+ return;
+ }
+
+ byte[] buffer = apdu.getBuffer();
+ switch (buffer[ISO7816.OFFSET_INS]) {
+ case (byte) 0x01:
+ processCMD1(apdu);
+ break;
+ default:
+ // Unknown Instruction
+ ISOException.throwIt(ISO7816.SW_INS_NOT_SUPPORTED);
+ }
+ }
+
+ private void processCMD1(APDU apdu) throws ISOException {
+ // Process command 1
+ return;
+ }
+}
diff --git a/src/org/hacdc/crystal/Crystal.java b/src/org/hacdc/crystal/Crystal.java
deleted file mode 100644
index 7451c23..0000000
--- a/src/org/hacdc/crystal/Crystal.java
+++ /dev/null
@@ -1,17 +0,0 @@
-package org.hacdc.crystal;
-
-import javacard.framework.APDU;
-import javacard.framework.Applet;
-
-public class Crystal extends Applet {
- public static void install(byte[] buffer, short offset, byte length){
- // GP-compliant JavaCard applet registration
- new Crystal().register();
- }
-
- @Override
- public void process(APDU apdu){
- // Process APDU commands
- }
-
-}
diff --git a/tmp/applet/org/hacdc/crystal/javacard/crystal.exp b/tmp/applet/org/hacdc/crystal/javacard/crystal.exp
deleted file mode 100644
index 08341f7..0000000
Binary files a/tmp/applet/org/hacdc/crystal/javacard/crystal.exp and /dev/null differ
diff --git a/tmp/logging/logging.properties b/tmp/logging/logging.properties
deleted file mode 100644
index a55ee0b..0000000
--- a/tmp/logging/logging.properties
+++ /dev/null
@@ -1 +0,0 @@
-.level = SEVERE