added factory methods for prototype systems, conditional actions, package refactor
fixed conditional state bug