Added arch-independant packages support + some refactoring + doc