fixed some issues with keyvalues and added create application logic vor version 0.0.2