refectored with status functions
coverage,jslint,metric_fu added