Add panic function
Improve inline asm
Reorganize project structure