Add valid pan format code

Signed-off-by: Aniket Pant <me@aniketpant.com>
Organize code into folders

Signed-off-by: Aniket Pant <me@aniketpant.com>