Added asymmetric crypto support
Misc. bugfixes