Move main file to lib/

Signed-off-by: Ian Macalinao <me@ian.pw>