replace rv_main file to new implementation
make rv_main object oriented

also add gitignore file