improve rpm updated, refactoring/cleaning up code, parameterizing options so as to work on multiple platforms